package cn.itchao.exmaple.base;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtils<T> {

    static ObjectMapper objectMapper= new ObjectMapper();

    public static <T>T convertValue(Object obj,Class<T> toValueType){
       return objectMapper.convertValue(obj,toValueType);
    }

}
